<?php

namespace Database\Seeders;

use Dcat\Admin\Admin;
use Dcat\Admin\Layout\Menu;
use Dcat\Admin\Models\Permission;
use Illuminate\Database\Seeder;

class CommonSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Admin::menu(function (Menu $menu) {
            $menu->add([
                ['id'=> '8','title'=> '常规管理','icon'=> 'fa-building','uri'=> '','parent_id'=> 0],
                ['id'=> '9','title'=> '系统配置','icon'=> 'fa-server','uri'=> 'general/config','parent_id'=> 8],
                ['id'=> '10','title'=> '用户管理','icon'=> 'fa-user','uri'=> 'user','parent_id'=> 0],
            ]);
        });
    }
}
